﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using GTCAS.DataAccess;
using GTCAS.CommonLib.Entities;

namespace GTCAS.Business
{
    public class MenuBO
    {
        private readonly MenuDAO DAO ;

        public MenuBO(long id_tinhthanh)
        {
            DAO = new MenuDAO(id_tinhthanh);

        }
        /// <summary>
        /// Lay toan bo danh sach menu
        /// </summary>
        /// <returns></returns>
        public List<GT_MENU> GetListAll()
        {
            return DAO.GetListAll();
        }
        /// <summary>
        /// 
        /// </summary>
        /// <returns></returns>
        public List<GT_MENU> GetListByUser(string username)
        {
            return DAO.GetListByUser(username);
        }
    }
}
